package com.yun.blog.utils;

import java.util.ArrayList;
import java.util.Random;

/**
 * title        : RandomColor
 * projectName  : dantouBlog-back
 * description  : 随机获取一个颜色
 * author       : simple
 * date         : 2022/11/26下午3:19
 */

public class RandomColor {

    public static final String[] colors = {
            "#f368e0",
            "#ff9f43",
            "#ee5253",
            "#0abde3",
            "#10ac84",
            "#00d2d3",
            "#54a0ff",
            "#5f27cd",
            "#01a3a4",
            "#2e86de",
            "#222f3e",
            "#fdcb6e",
            "#e17055",
    };

    public static String RandomHex() {
        Random random = new Random();
        int i = random.nextInt(colors.length);
        return colors[i];
    }

}
